package com.pks.datacenter.listener;
/*package com.thanone.oheduyun.listener;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

import org.springframework.beans.factory.annotation.Autowired;

import com.thanone.oheduyun.handler.RedisHandler;

@WebListener
public class SessionListener implements HttpSessionListener, HttpSessionAttributeListener {

	@Autowired
	private RedisHandler redisHandler;
	
	public void sessionCreated(HttpSessionEvent event) {
		redisHandler.setSessionRandom(event.getSession().getId(), 600);
	}

	public void sessionDestroyed(HttpSessionEvent event) {

	}

	@Override
	public void attributeAdded(HttpSessionBindingEvent arg0) {

	}

	@Override
	public void attributeRemoved(HttpSessionBindingEvent arg0) {

	}

	@Override
	public void attributeReplaced(HttpSessionBindingEvent arg0) {

	}

}*/